package com.views.structure
{
	import com.View;
	import com.views.IView;
	import com.views.Structure;
	
	import flash.utils.Dictionary;

	public class Popup extends Base
	{
		public var structure :Structure;
		
		private var _supers:Dictionary;
		private var _views:Dictionary;
		private var _frees:Dictionary;
		
		private var _view :View;
		
		public function Popup( view :View )
		{
			super();
			
			_supers = new Dictionary();
			_views = new Dictionary();
			_frees = new Dictionary();
			
			_view = view;
		}
		
		public function hasView( view :IView ) :Boolean {
			return _views[ view ] || _supers[ view ] || _frees[ view ];
		}
	}
}